<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8" />
  <title>Amis-React-stater</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link type="image/x-icon" rel="shortcut icon" href="/src/static/favicon.png" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
  <link rel="stylesheet" href="/src/static/iconfont.css" />
  <link rel="stylesheet" href="/src/static/officefont.css" />
  <link rel="stylesheet" href="/node_modules/@fortawesome/fontawesome-free/css/all.css" />
  <link rel="stylesheet" href="/node_modules/@fortawesome/fontawesome-free/css/v4-shims.css" />
  <link rel="stylesheet" href="/node_modules/prismjs/themes/prism.css" />

  <link rel="stylesheet" href="/src/style.scss" />
  <!-- 引入对应主题的样式代码 -->
  <link rel="stylesheet" href="/node_modules/amis/lib/themes/antd.css" />
  <!-- <link rel="stylesheet" href="/node_modules/amis/lib/themes/cxd.css" /> -->
  <!-- <link rel="stylesheet" href="/node_modules/amis/lib/themes/ang.css" /> -->
  <link rel="stylesheet" href="/node_modules/amis-ui/lib/helper.css" />

  <style>
    .app-wrapper,
    .schema-wrapper {
      position: relative;
      width: 100%;
      height: 100%;
    }
  </style>
  <!-- 这段暂时用不上，直接用编译好的css就好了 -->
  <!-- <script type="module">
    let theme = localStorage.getItem('amis-theme') || 'cxd';
    if (theme === 'default') {
      theme = 'cxd';
    }
    ['ang', 'cxd', 'antd'].forEach(key => {
      const link = document.createElement('link');
      link.setAttribute('rel', 'stylesheet');
      link.setAttribute('title', key);
      if (theme !== key) {
        link.setAttribute('disabled', 'disabled');
      }
      link.setAttribute(
        'href',
        new URL(`/node_modules/amis-ui/scss/themes/${key}.scss`, import.meta.url)
          .href
      );
      document.head.appendChild(link);
    });
    // helper 放在末尾提高优先级
    const helper = document.createElement('link');
    helper.setAttribute('rel', 'stylesheet');
    helper.setAttribute(
      'href',
      new URL(`/node_modules/amis-ui/scss/helper.scss`, import.meta.url).href
    );
    document.head.appendChild(helper);
  </script> -->
  <!--ignore-->
</head>

<body>
  <div id="root" class="app-wrapper"></div>
  <script type="text/javascript">
    if (location.hostname !== 'localhost') {
      var _hmt = _hmt || [];
      // 百度统计
      (function () {
        var hm = document.createElement('script');
        hm.src =
          'https://hm.baidu.com/hm.js?286766a21abb57abefedbd5257a26dc8';
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(hm, s);
      })();
    }
  </script>
  <!-- Vite能解析type=“module”下的代码 -->
  <script type="module">
    import { bootstrap } from "/src/index.jsx";
    window.enableAMISDebug = true;
    const initialState = {};
    bootstrap(document.getElementById('root'), initialState);
  </script>
</body>

</html>